package com.kob.controller.record;

import com.alibaba.fastjson.JSONObject;
import com.kob.service.record.getRecordListService;
import com.kob.service.user.bot.GetListService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class GetRecordListController {
    @Autowired
    private getRecordListService getList;
    @GetMapping("/api/record/getList/")
    public JSONObject getList(@RequestParam Map<String,String> data){

        Integer page = Integer.parseInt(data.get("page"));
        System.out.println(page);
        return getList.getList(page);
    }
}
